package tr.edu.metu.is550.isell.rest.message;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "user")
public class GetUserDetailsResponseMessage {

    @XmlElement
    @NotNull
    @Size(min = 1, max = 250, message = "invalid.size")
    private String name;

    @XmlElement
    @NotNull
    @Size(min = 1, max = 250, message = "invalid.size")
    private String surname;

    @XmlElement
    @Size(min = 1, max = 500, message = "invalid.size")
    private String address;

    @XmlElement
    @Size(min = 1, max = 250, message = "invalid.size")
    private String phone;

    @XmlElement
    @Size(min = 1, max = 250, message = "invalid.size")
    private String email;

    @XmlElement
    @NotNull
    @Size(min = 1, max = 250, message = "invalid.size")
    private String loginName;

    public GetUserDetailsResponseMessage(String name, String surname, String address, String phone, String email, String loginName) {
        this.name = name;
        this.surname = surname;
        this.address = address;
        this.phone = phone;
        this.email = email;
        this.loginName = loginName;
    }
}
